//
//  main.m
//  SDemo
//
//  Created by gg on 2018/7/2.
//  Copyright © 2018年 gg. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "SHSingleton.h"

int main(int argc, char * argv[]) {
    @autoreleasepool {
        
//        SHSingleton *single1 = [SHSingleton share];
//        single1.name = @"jack";
//        SHSingleton *single2 = [SHSingleton share];
//        single2.name = @"james";
//        SHSingleton *single3 = [[SHSingleton alloc] init];
//        NSLog(@"single1 : %@",single1);
//        NSLog(@"single2 : %@",single2);
//        NSLog(@"single3 : %@",single3);
//
//        NSLog(@"name1 : %@",single1.name);
//        NSLog(@"name2 : %@",single2.name);
//        NSLog(@"name3 : %@",single3.name);
        
//        2018-07-16 17:25:21.833374+0800 SDemo[14589:575487] single1 : <SHSingleton: 0x600000019ae0>
//        2018-07-16 17:25:21.834300+0800 SDemo[14589:575487] single2 : <SHSingleton: 0x600000019ae0>
//        2018-07-16 17:25:21.834545+0800 SDemo[14589:575487] single3 : <SHSingleton: 0x600000019af0>

        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
